<%= render 'spree/admin/shared/audit_nav' %>

<% if @collection.present? %>
  <div class="table-responsive card-lg p-0">
    <table class="table">
      <thead class="text-muted">
        <tr>
          <th><%= Spree.t(:number) %></th>
          <th class="text-center"><%= Spree.t(:kind) %></th>
          <th class="text-center"><%= Spree.t(:status) %></th>
          <th><%= Spree.t(:user) %></th>
          <th><%= Spree.t(:filename) %></th>
          <th><%= Spree.t(:date) %></th>
          <th><%= Spree.t(:size) %></th>
          <th class="text-center"><%= Spree.t(:download) %></th>
        </tr>
      </thead>
        <tbody>
          <%= render partial: 'export', collection: @exports, cached: true %>
        </tbody>
      </table>
    </div>
  </div>
<% else %>
  <div class="text-muted p-5 d-flex align-items-center w-100 justify-content-center">
    <%= Spree.t(:no_resource_found, resource: Spree.t('admin.exports.plural_resource_name')) %>
  </div>
<% end %>

<%= render 'spree/admin/shared/index_table_options', collection: @imports, simple: true if @imports.present? %>
